<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="Tj2's Blog">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>绿萝间 (old posts, page 182) | 绿萝间</title>
<link href="assets/css/all-nocdn.css" rel="stylesheet" type="text/css">
<link href="assets/css/ipython.min.css" rel="stylesheet" type="text/css">
<link href="assets/css/nikola_ipython.css" rel="stylesheet" type="text/css">
<meta name="theme-color" content="#5670d4">
<meta name="generator" content="Nikola (getnikola.com)">
<link rel="alternate" type="application/rss+xml" title="RSS" href="rss.xml">
<link rel="canonical" href="https://muxuezi.github.io/index-182.html">
<link rel="prev" href="index-183.html" type="text/html">
<link rel="next" href="index-181.html" type="text/html">
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
    tex2jax: {
        inlineMath: [ ['$','$'], ["\\(","\\)"] ],
        displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
        processEscapes: true
    },
    displayAlign: 'center', // Change this to 'center' to center equations.
    "HTML-CSS": {
        styles: {'.MathJax_Display': {"margin": 0}}
    }
});
</script><!--[if lt IE 9]><script src="assets/js/html5.js"></script><![endif]-->
</head>
<body>
<a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>

<!-- Menubar -->

<nav class="navbar navbar-inverse navbar-static-top"><div class="container">
<!-- This keeps the margins nice -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-navbar" aria-controls="bs-navbar" aria-expanded="false">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="https://muxuezi.github.io/">

                <span id="blog-title">绿萝间</span>
            </a>
        </div>
<!-- /.navbar-header -->
        <div class="collapse navbar-collapse" id="bs-navbar" aria-expanded="false">
            <ul class="nav navbar-nav">
<li>
<a href="archive.html">Archive</a>
                </li>
<li>
<a href="categories/">Tags</a>
                </li>
<li>
<a href="rss.xml">RSS feed</a>

                
            </li>
</ul>
<ul class="nav navbar-nav navbar-right"></ul>
</div>
<!-- /.navbar-collapse -->
    </div>
<!-- /.container -->
</nav><!-- End of Menubar --><div class="container" id="content" role="main">
    <div class="body-content">
        <!--Body content-->
        <div class="row">
            
            

    
<div class="postindex">
    <article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/binarizing-label-features.html" class="u-url">binarizing-label-features</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/binarizing-label-features.html" rel="bookmark"><time class="published dt-published" datetime="2015-07-27T14:57:41+08:00" title="2015-07-27 14:57">2015-07-27 14:57</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div tabindex="-1" id="notebook" class="border-box-sizing">
    <div class="container" id="notebook-container">

<div class="cell border-box-sizing text_cell rendered">
<div class="prompt input_prompt">
</div>
<div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<h2 id="标签特征二元化">标签特征二元化<a class="anchor-link" href="posts/binarizing-label-features.html#%E6%A0%87%E7%AD%BE%E7%89%B9%E5%BE%81%E4%BA%8C%E5%85%83%E5%8C%96">¶</a>
</h2>
</div>
</div>
</div>
<div class="cell border-box-sizing text_cell rendered">
<div class="prompt input_prompt">
</div>
<div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<p>在这个主题中，我们将用另一种方式来演示分类变量。有些时候只有一两个分类特征是重要的，这时就要避免多余的维度，如果有多个分类变量就有可能会出现这些多余的维度。</p>
<p class="more"><a href="posts/binarizing-label-features.html">Read more…</a></p>
</div>
</div>
</div>
</div>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/1-premodel-workflow.html" class="u-url">1-premodel-workflow</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/1-premodel-workflow.html" rel="bookmark"><time class="published dt-published" datetime="2015-07-27T13:36:10+08:00" title="2015-07-27 13:36">2015-07-27 13:36</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div tabindex="-1" id="notebook" class="border-box-sizing">
    <div class="container" id="notebook-container">

<div class="cell border-box-sizing text_cell rendered">
<div class="prompt input_prompt">
</div>
<div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<h2 id="建模前工作流">建模前工作流<a class="anchor-link" href="posts/1-premodel-workflow.html#%E5%BB%BA%E6%A8%A1%E5%89%8D%E5%B7%A5%E4%BD%9C%E6%B5%81">¶</a>
</h2>
</div>
</div>
</div>
<div class="cell border-box-sizing text_cell rendered">
<div class="prompt input_prompt">
</div>
<div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<p>本章包括以下主题：</p>
<ol>
<li><a href="posts/getting-sample-data-from-external-sources.html">从外部源获取样本数据</a></li>
<li><a href="posts/creating-sample-data-for-toy-analysis.html">创建试验样本数据</a></li>
<li><a href="posts/scaling-data-to-the-standard-normal.html">把数据调整为标准正态分布</a></li>
<li><a href="posts/creating-binary-features-through-thresholding.html">用阈值创建二元特征</a></li>
<li><a href="posts/working-with-categorical-variables.html">分类变量处理</a></li>
<li><a href="posts/binarizing-label-features.html">标签特征二元化</a></li>
<li><a href="posts/imputing-missing-values-through-various-strategies.html">处理缺失值</a></li>
<li><a href="posts/using-pipelines-for-multiple-preprocessing-steps.html">用管线命令处理多个步骤</a></li>
<li><a href="posts/reducing-dimensionality-with-pca.html">用主成分分析降维</a></li>
<li><a href="posts/using-factor-analytics-for-decomposition.html">用因子分析降维</a></li>
<li><a href="posts/kernel-pca-for-nonlinear-dimensionality-reduction.html">用核PCA实现非线性降维</a></li>
<li><a href="posts/using-truncated-svd-to-reduce-dimensionality.html">用截断奇异值分解降维</a></li>
<li><a href="posts/decomposition-to-classify-with-dictionarylearning.html">用字典学习分解法分类</a></li>
<li><a href="posts/putting-it-all-together-with-pipelines.html">用管线命令连接多个转换方法</a></li>
<li><a href="posts/using-gaussian-processes-for-regression.html">用正态随机过程处理回归</a></li>
<li><a href="posts/defining-the-gaussian-process-object-directly.html">直接定义一个正态随机过程对象</a></li>
<li><a href="posts/using-stochastic-gradient-descent-for-regression.html">用随机梯度下降处理回归</a></li>
</ol>
<p class="more"><a href="posts/1-premodel-workflow.html">Read more…</a></p>
</div>
</div>
</div>
</div>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/slott-2015086-2015-07-26-report.html" class="u-url">双色球2015086期(2015-07-26)数据分析报告</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/slott-2015086-2015-07-26-report.html" rel="bookmark"><time class="published dt-published" datetime="2015-07-27T08:00:00+08:00" title="2015-07-27 08:00">2015-07-27 08:00</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p>如有雷同，纯属巧合</p>
<p class="more"><a href="posts/slott-2015086-2015-07-26-report.html">Read more…</a></p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/dlott-15085-2015-07-25-report.html" class="u-url">大乐透15085期(2015-07-25)数据分析报告</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/dlott-15085-2015-07-25-report.html" rel="bookmark"><time class="published dt-published" datetime="2015-07-26T08:00:00+08:00" title="2015-07-26 08:00">2015-07-26 08:00</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p>如有雷同，纯属巧合</p>
<p class="more"><a href="posts/dlott-15085-2015-07-25-report.html">Read more…</a></p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/slott-2015085-2015-07-23-report.html" class="u-url">双色球2015085期(2015-07-23)数据分析报告</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/slott-2015085-2015-07-23-report.html" rel="bookmark"><time class="published dt-published" datetime="2015-07-24T08:00:00+08:00" title="2015-07-24 08:00">2015-07-24 08:00</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p>如有雷同，纯属巧合</p>
<p class="more"><a href="posts/slott-2015085-2015-07-23-report.html">Read more…</a></p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/the-swift-programming-language-en.html" class="u-url">The Swift Programming Language EN</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/the-swift-programming-language-en.html" rel="bookmark"><time class="published dt-published" datetime="2015-07-23T10:44:10+08:00" title="2015-07-23 10:44">2015-07-23 10:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p>One page Swift, updated at 2015-07-23 on <a href="https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/">eveloper.apple</a>
</p>
<p class="more"><a href="posts/the-swift-programming-language-en.html">Read more…</a></p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/dlott-15084-2015-07-22-report.html" class="u-url">大乐透15084期(2015-07-22)数据分析报告</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/dlott-15084-2015-07-22-report.html" rel="bookmark"><time class="published dt-published" datetime="2015-07-23T08:00:00+08:00" title="2015-07-23 08:00">2015-07-23 08:00</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p>如有雷同，纯属巧合</p>
<p class="more"><a href="posts/dlott-15084-2015-07-22-report.html">Read more…</a></p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/slott-2015084-2015-07-21-report.html" class="u-url">双色球2015084期(2015-07-21)数据分析报告</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/slott-2015084-2015-07-21-report.html" rel="bookmark"><time class="published dt-published" datetime="2015-07-22T08:00:00+08:00" title="2015-07-22 08:00">2015-07-22 08:00</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p>如有雷同，纯属巧合</p>
<p class="more"><a href="posts/slott-2015084-2015-07-21-report.html">Read more…</a></p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/dlott-15083-2015-07-20-report.html" class="u-url">大乐透15083期(2015-07-20)数据分析报告</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/dlott-15083-2015-07-20-report.html" rel="bookmark"><time class="published dt-published" datetime="2015-07-21T08:00:00+08:00" title="2015-07-21 08:00">2015-07-21 08:00</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p>如有雷同，纯属巧合</p>
<p class="more"><a href="posts/dlott-15083-2015-07-20-report.html">Read more…</a></p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/slott-2015083-2015-07-19-report.html" class="u-url">双色球2015083期(2015-07-19)数据分析报告</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/slott-2015083-2015-07-19-report.html" rel="bookmark"><time class="published dt-published" datetime="2015-07-20T08:00:00+08:00" title="2015-07-20 08:00">2015-07-20 08:00</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p>如有雷同，纯属巧合</p>
<p class="more"><a href="posts/slott-2015083-2015-07-19-report.html">Read more…</a></p>
</div>
    </div>
    </article>
</div>

        <nav class="postindexpager"><ul class="pager">
<li class="previous">
                <a href="index-183.html" rel="prev">Newer posts</a>
            </li>
            <li class="next">
                <a href="index-181.html" rel="next">Older posts</a>
            </li>
        </ul></nav><script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script><script type="text/x-mathjax-config">
MathJax.Hub.Config({
    tex2jax: {
        inlineMath: [ ['$','$'], ["\\(","\\)"] ],
        displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
        processEscapes: true
    },
    displayAlign: 'center', // Change this to 'center' to center equations.
    "HTML-CSS": {
        styles: {'.MathJax_Display': {"margin": 0}}
    }
});
</script>
</div>
        <!--End of body content-->

        <footer id="footer">
            Contents © 2017         <a href="mailto:muxuezi@gmail.com">Tao Junjie</a> - Powered by         <a href="https://getnikola.com" rel="nofollow">Nikola</a>         
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0">
<img alt="Creative Commons License BY-NC-SA" style="border-width:0; margin-bottom:12px;" src="http://i.creativecommons.org/l/by-nc-sa/4.0/80x15.png"></a>
            
        </footer>
</div>
</div>


            <script src="assets/js/all-nocdn.js"></script><script>$('a.image-reference:not(.islink) img:not(.islink)').parent().colorbox({rel:"gal",maxWidth:"100%",maxHeight:"100%",scalePhotos:true});</script><!-- fancy dates --><script>
    moment.locale("en");
    fancydates(0, "YYYY-MM-DD HH:mm");
    </script><!-- end fancy dates --><script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-51330059-1', 'auto');
  ga('send', 'pageview');

</script>
</body>
</html>
